import request from '@/utils/HttpRequest'

export default {

    //获取购物车数量
    getCartNum() {
        return request({
            url: '/gmmallcart/gameshopping/getCartNum',
            method: 'get',
        })
    },

    //添加购物车
    addGameCartInfo(gameCart) {
        return request({
            url: '/gmmallcart/gameshopping/addCart',
            method: 'post',
            data: gameCart
        })
    },

    //获取购物车列表
    getGameCartListInfo() {
        return request({
            url: '/gmmallcart/gameshopping/getCartList',
            method: 'get',
        })
    },

    addWishInfo(memberWish) {
        return request({
            url: '/gmmallcart/gameshopping/addWish',
            method: 'post',
            data: memberWish
        })
    },

    //删除购物车内容
    deleteCartInfo(gameId) {
        return request({
            url: '/gmmallcart/gameshopping/deleteCart/' + gameId,
            method: 'delete',
        })
    }

}